import UIKit
import Flutter
// import flutter_downloader
//import UMCommon
@main
@objc class AppDelegate: FlutterAppDelegate {
  override func application(
    _ application: UIApplication,
    didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
  ) -> Bool {
      
      GeneratedPluginRegistrant.register(with: self)
      SwiftChannelPlugin.register(with: self.registrar(forPlugin: SwiftChannelPlugin.channelName)!)
      
      // FlutterDownloaderPlugin.setPluginRegistrantCallback { registry in
      //         if (!registry.hasPlugin("FlutterDownloaderPlugin")) {
      //            FlutterDownloaderPlugin.register(with: registry.registrar(forPlugin: "FlutterDownloaderPlugin")!)
      //         }
      // }
//      print(UMConfigure.deviceIDForIntegration())
//      UMConfigure.initWithAppkey("6669083dcac2a664de47c335", channel: "绩效")
//      UMConfigure.setLogEnabled(true)
    return super.application(application, didFinishLaunchingWithOptions: launchOptions)
  }
    
    
//    override func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey : Any] = [:]) -> Bool {
//        if MobClick.handle(url) {
//            return true
//        }
//        return true
//    }
    
    
  
}
